//
//  Pool_commentVC.m
//  duoduo
//
//  Created by wanghao on 16/10/12.
//  Copyright © 2016年 LX. All rights reserved.
//

#import "Pool_commentVC.h"
#import "TheCommentCell.h"

@interface Pool_commentVC ()<UITableViewDelegate,UITableViewDataSource>
@property (nonatomic,strong) UITableView * listTableView;

@end

@implementation Pool_commentVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self initUI];
}

- (void)viewWillAppear:(BOOL)animated
{
    self.tabBarController.tabBar.hidden=YES;
}

- (void)initUI
{

    _listTableView =[[UITableView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, ScreenHeight-64-5) style:UITableViewStylePlain];
    _listTableView.delegate = self;
    _listTableView.dataSource = self;
    _listTableView.tableFooterView.backgroundColor = LXHexColor(0xD6D6D6);
    [self.view  addSubview:_listTableView];
    [_listTableView registerNib:[UINib nibWithNibName:@"TheCommentCell" bundle:nil] forCellReuseIdentifier:@"listcell"];
    _listTableView.tableFooterView = [[UIView alloc]init];

}

#pragma mark --- UITableViewDelegate
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    TheCommentCell * cell = [tableView dequeueReusableCellWithIdentifier:@"listcell"];

    return cell;
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [tableView deselectRowAtIndexPath:indexPath animated:NO];
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 70;
}


@end
